#include<bits/stdc++.h>

using namespace std;

int main() {
    //1 true 0 false '\
	assert(0=='\0');
    assert('0' == '\0');//
    char s[100];
    cin >> s;
    cout << strlen(s) << endl;//5
    //gets(s);//unsafe
//	fgets(s,100-1,stdin);//safe
    int i = 0;
    while (s[i] != '\0')i++;
    cout << i;


    return 0;
}
